package example_03.iftest.practice_01;

public class Daffodil {
    public static void main(String[] args) {
        int a =153;
        if (a>99&&a<1000){
            if(Math.pow((a/100),3)+Math.pow((a/10%10),3)+Math.pow((a%10),3)==a){
                System.out.println("是水仙花数");
            }
            else {
                System.out.println("不是水仙花数");
            }
        }
        else {
            System.out.println("输入有误！");
        }
    }
}
